export const status = {
    methods: {
        yesNo(v, type) {

            let zh

            if (type == 'no') {
                zh = {
                    2: '是',
                    3: '否'
                }
            } else {
                zh = {
                    2: '<span style="color: green;">是</span>',
                    3: '<span style="color: red;">否</span>'
                }
            }

            if (v) zh = zh[v];

            return zh;
        }
    }

}